package com.ming.test.page;

import java.util.Arrays;

public class Demo3 {
    public static void main(String[] ages){
        //创建一个长度为10的整数数组
        int[] array  = new int[10];
//赋值
        array[0] = 1;
        array[1] = 2;
        System.out.println(Arrays.toString(array));

        int[] array1={1,2,3,4,5};
        System.out.println(Arrays.toString(array1));

        int[][] moreArray = {{1,2},{2,3},{3,4},{4,5}};
        for (int i = 0; i < moreArray.length; i++) {
            for (int j = 0; j < moreArray[i].length; j++) {
                System.out.println(moreArray[i][j]);
                /*
                *1
                * 2
                * 2
                * 3
                * 3
                * 4
                * 4
                * 5 */
            }
        }
    }
}